package com.jader.beans;

import java.io.Serializable;

public class CollectStore implements Serializable {
	private static final long serialVersionUID = 1L;

	private int collectStoreId;
	private Seller seller;

	public CollectStore(int collectStoreId, Seller seller) {
		super();
		this.collectStoreId = collectStoreId;
		this.seller = seller;
	}

	public CollectStore() {
		super();
	}

	public int getCollectStoreId() {
		return collectStoreId;
	}

	public void setCollectStoreId(int collectStoreId) {
		this.collectStoreId = collectStoreId;
	}

	public Seller getSeller() {
		return seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	@Override
	public String toString() {
		return "CollectStore [collectStoreId=" + collectStoreId + ", seller="
				+ seller + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + collectStoreId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CollectStore other = (CollectStore) obj;
		if (collectStoreId != other.collectStoreId)
			return false;
		return true;
	}

}
